<?php
include('../conf.php');
$sql = "select cat_id, sub_id, name, icon from tb_categories where comp_id=1";
$conn->SetFetchMode(ADODB_FETCH_ASSOC);
$rs = $conn->Execute($sql);
$data = $rs->GetRows();
echo json_encode($data);

?>